package com.learning.spring.cloud.alibaba.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * ClassName: EurekaServerApplication
 * Description: 启动类
 * 1、以前的版本，注册到注册中心需要添加 @EnableEurekaClient 或者 @EnableDiscoveryClient
 * 2、Edgware 版本开始不需要手动添加注解，应用会自动注册，相关配置为 `spring.cloud.service-registry.auto-registration.enabled`
 * 3、 取消自动注册
 * - @EnableDiscoveryClient(autoRegister = false)
 * - spring.cloud.service-registry.auto-registration.enabled=false
 * <p>
 * Date: 2021/7/25 23:03 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Slf4j
@SpringBootApplication
public class EurekaClientApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaClientApplication.class, args);
        log.info("~~~~~~~~~ Eureka Client application is started ~~~~~~~~~");
    }
}
